home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3026 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  68 lines

  1. Path: fizban.solace.mh.se!usenet
  2. From: Roger Martensson <ping9535@ntostud.mh.se>
  3. Newsgroups: comp.lang.c
  4. Subject: C to asm stuff
  5. Date: Thu, 25 Jan 1996 13:09:36 +0000
  6. Organization: Mid Sweden University
  7. Message-ID: <31078110.54AB@ntostud.mh.se>
  8. NNTP-Posting-Host: @ljusnan.ntostud.mh.se
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b6a (X11; I; SunOS 5.4 sun4m)
  13.  
  14. Hello everyone!
  15.  
  16. I'm setting up a minor page for my classmates, where I show them
  17. the difference between different machinecode sets.
  18.  
  19. I made a small C programme, and compiled it with the -S option
  20. in GCC to get the assembler code.
  21.  
  22. What I would like to ask you if you could check the CPU list below and
  23. if you have a computer with one of those CPUs, please compile the 
  24. following C program and send the asm source to me.
  25.  
  26. I've already got asm sources for these CPU's
  27. SPARC 
  28. VAX
  29. INTEL 386+
  30. MC68030
  31.  
  32. And I would like to have sources for these CPU's
  33. HP
  34. CRAY
  35. MIPS
  36. PPC
  37. And other CPU's that's not listed here.
  38.  
  39. Please use the following C program:
  40. ------------------
  41. #include <stdio.h>
  42.  
  43. void main(void)
  44. {
  45. int a;
  46. int i;
  47. printf("This is a test");
  48. a=98*9;
  49. for(i=0;i<100;i++)
  50.         {
  51.         a=i*a;
  52.         printf("%d\n", a);
  53.         }
  54. }
  55. -----------------
  56.  
  57. Compile it with GCC test.c -otest.s -S, or anyother compiler.
  58. Please don't post in this newsgroup, because I don't read it that
  59. often. Please use my E-Mail address below.
  60.  
  61. Thanks in advance to everyone that replys.
  62. Regards,
  63. --
  64. Roger Martensson    E-Mail: ragge@medio.mh.se
  65. Slattervagen 19        IRC: Ragge
  66. S-831 61 OSTERSUND    Also: Amiga owner
  67. SWEDEN
  68.